<template>
  <div id="bottomLeft">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span>
          <icon name="chart-bar" class="text-icon"></icon>
        </span>
        <div class="d-flex">
          <span class="fs-xl text mx-2" @click="button" style="font-size: 15px">全国疫情新增趋势</span>
        </div>
      </div>
      <div>
        <BottomLeftChart />
      </div>
    </div>
  </div>
</template>

<script>
import BottomLeftChart from '_c/ynnz/bottom/bottomLeftChart'
export default {
  methods:{
    button(){
      this.$confirm('是否前往全国疫情？', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        window.open("https://voice.baidu.com/act/newpneumonia/newpneumonia/?from=osari_aladin_banner#tab0");
      })
    }
  },
  components: {
    BottomLeftChart
  }
}
</script>

<style lang="scss" scoped>
//图表宽度
$box-height: 520px;
$box-width: 610px;
#bottomLeft {
  padding: 20px 16px;
  height: $box-height;
  width: $box-width;
  border-radius: 5px;
  .bg-color-black {
    height: $box-height - 35px;
    border-radius: 10px;
  }
  .text {
    color: #c3cbde;
  }
  .chart-box {
    margin-top: 16px;
    width: 170px;
    height: 170px;
    .active-ring-name {
      padding-top: 10px;
    }
  }
}
</style>
